package com.xiaobai.bo;

import lombok.Data;

/**
 * @description: 教室
 * @author: 小白白
 * @create: 2021-11-26
 **/

@Data
public class FreeClassroomItem {

    /**
     * 教室名
     */
    private String name;

    /**
     * 可容纳人量
     */
    private Integer capacity;

    /**
     * 空闲节次数组[5节大课] 0,1,2,3,4
     */
    private boolean[] freeArr = new boolean[5];

    public FreeClassroomItem(String name, Integer capacity) {
        this.name = name;
        this.capacity = capacity;
    }

    public void addFree(int index) {
        freeArr[index] = true;
    }

}
